<?php
include_once("db.inc");
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
$sql = "select * from taikhoan where tendangnhap='$username' and matkhau='$password'";
$result = mysql_query($sql);
$rows = mysql_fetch_array($result);
$quyen = $rows["quyen"];
if(mysql_num_rows($result)!=0)
{
	echo "<input type=\"hidden\" value=\"$quyen\" id=\"quyen\" />";
}
?>